package com.health.controller;


import com.health.pojo.CheckItem;
import com.health.service.CheckItemService;
import com.health.vo.PageResult;
import com.health.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


//@CrossOrigin(origins = {"http://localhost:63342"},maxAge = 3600)
@RestController
@RequestMapping("/checkItem")
public class CheckItemController {
    @Resource
    private CheckItemService checkItemService;

    @GetMapping("/findPage/{pageNow}/{pageSize}")
    public Result findPage(@PathVariable Integer pageNow, @PathVariable Integer pageSize,
                           String query){
        PageResult<CheckItem> pageResult=checkItemService.findPage(pageNow,pageSize,query);

        return new Result(true,"查询检查项成功(分页条件查询)",pageResult);
    }

}
